<?php
header("Content-type:text/html;charset=utf-8");
    $conn = mysql_connect("localhost","root","123456");

    mysql_select_db("dickies");

    $Phone = $_POST["userPhone"];
    $Pwd = $_POST["userPwd"];
    
    $create = mysql_query("insert into user values($Phone,'$Pwd')",$conn);
    if($create){
        echo "1";
    }else{
        echo "0";
    }
    mysql_close($conn);
?>